#include "pir.h"

void PIR_Init(void)
{
	RCC->APB2ENR|=1<<2;	//使能PortA时钟
	GPIOA->CRL&=0xff0fffff;
	GPIOA->CRL|=0x00800000;	//PA5 输入模式
}
